package com.grom.service;

import java.util.List;

import com.grom.dao.BrandDao;
import com.grom.po.Brand;
import com.grom.po.BrandVisitHistory;
import com.grom.po.ContactInfo;

public interface BrandService {
	BrandService instance = new BrandService() {

		public List<Brand> getAllBrands() {
			return BrandDao.instance.getAllBrands();
		}

		public void add(Brand brand, List<ContactInfo> conList, List<BrandVisitHistory> historyList) {
			BrandDao.instance.add(brand, conList, historyList);
		}

		public void update(Brand brand, List<ContactInfo> conList, List<BrandVisitHistory> historyList) {
			BrandDao.instance.update(brand, conList, historyList);
		}

		public Brand getBrandById(String ID) {
			return BrandDao.instance.getBrandById(ID);
		}

		public void delete(Brand brand) {
			BrandDao.instance.delete(brand);
		}

		public List<Brand> selectByCondition(String sql) {
			return BrandDao.instance.selectByCondition(sql);
		}

	};

	List<Brand> getAllBrands();

	List<Brand> selectByCondition(String sql);

	Brand getBrandById(String ID);

	void add(Brand brand, List<ContactInfo> conList, List<BrandVisitHistory> historyList);

	void delete(Brand brand);

	void update(Brand brand, List<ContactInfo> conList, List<BrandVisitHistory> historyList);

}
